<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>


<c:if test="${not empty param.login_error}">
	<font color="red"><spring:message code="autenticazione.errata" text="Autenticazione errata"/></font>
</c:if>

<c:if test="${not empty errload}">
	<font color="red"><spring:message code="errore.recupero.utente" text="Errore recupero utente"/></font>
</c:if>

<div style="height: 50px;"></div>
<div style="height: 300px; text-align:left;">

	<div class="form-field-container">
		<form class="cmxform" action="<c:url value='j_spring_security_check'/>" method="POST">
	       	<div class="form-field-part">
	           	<div class="label"><spring:message code="login.username" text="Username"/> <em>*</em></div><input class="form-field-input" type="text" id='j_username' name='j_username' size="20"/>
				<div class="clearfloat"></div>
				<div class="label"><spring:message code="login.password" text="Password"/> <em>*</em></div><input class="form-field-input" type="password" id='j_password' name='j_password' size="20" />
				<div class="clearfloat"></div>
	       	</div>
	       	
			<div class="clearfloat"></div>
	       	<div>
	           <input class="submit" type="submit" value='<spring:message code="button.conferma" />'/>
	      
	           <a onclick="reset();" href="#" class="button">
				<span class="icon_right">
					<spring:message code="button.elimina" />
				</span>
			</a>
	           
			</div>
	   </form>
	</div>
</div>

<script>
	function submit() {
		document.forms[0].submit();
		return false;
	}

	function reset() {
		document.forms[0].reset();
		return false;
	}
</script>
